home *** CD-ROM | disk | FTP | other *** search
/ World of Video / World of Video.iso / gfxprograms / misc / adprorunner / install adprorunner < prev    next >
Encoding:
Text File  |  1995-02-13  |  2.0 KB  |  124 lines

  1.  ; script to install ADProRunner 
  2.  
  3. (set Opt 5)
  4. (complete 0)
  5.  
  6. ;Get directory to install ADProRunner in.
  7. (set destdir 
  8.     (askdir 
  9.         (prompt "In which drawer should ADProRunner be installed?") 
  10.         (help @askdir-help)
  11.         (default (tackon @default-dest "Utilities"))
  12.     )
  13. )
  14.  
  15. (complete 10)
  16.  
  17. (if (NOT (exists "libs:cando.library" (noreq)))
  18.     (set Opt 6)
  19. )
  20.  
  21.  
  22. (set installfiles
  23.     (askoptions
  24.         (prompt "Which of the following optional programs/helpfile should be installed ?")
  25.         (help @askoptions-help)
  26.         (choices "ADProRunner requires Cando.library (10 KB)" "ADProRunner StandAlone (140 KB)" "ADProRunner.Guide (Requires Multiview)")
  27.         (default Opt)
  28.     )
  29. )
  30.  
  31. (complete 30)
  32.  
  33. ;Copy program files to destination.
  34.  
  35. (if (BITAND installfiles 1)
  36. (copyfiles
  37.     (source "ADProRunner_Short")
  38.     (dest destdir)
  39. )
  40. )
  41.  
  42. (if (BITAND installfiles 1)
  43. (
  44.     (set RenameFiles ("c:rename %sADProRunner_Short %sADProRunner" destdir destdir ))
  45.     (run (RenameFiles))
  46. )
  47. )
  48.  
  49. (if (BITAND installfiles 1)
  50. (copyfiles
  51.     (source "ADProRunner.info")
  52.     (dest destdir)
  53. )    
  54. )
  55.  
  56. (complete 40)
  57.  
  58. (if (BITAND installfiles 2)
  59. (copyfiles
  60.     (source "ADProRunner")
  61.     (dest destdir)
  62. )
  63. )
  64.  
  65. (if (BITAND installfiles 2)
  66. (copyfiles
  67.     (source "ADProRunner.info")
  68.     (dest destdir)
  69. )    
  70. )
  71. (complete 60)
  72.  
  73. (if (BITAND installfiles 4)
  74. (
  75.     (set RenameFiles ("c:makedir help:english" ))
  76.     (run (RenameFiles))
  77.  
  78. (copyfiles
  79.     (source "Help/ADProRunner.guide")
  80.     (dest "help:english/")
  81. )
  82. )
  83. )
  84.  
  85. (if (BITAND installfiles 4)
  86. (copyfiles
  87.     (source "Help/ADProRunner.guide.info")
  88.     (dest "help:english/")
  89. )
  90. )
  91.  
  92. (complete 70)
  93.  
  94. (set ADProRunner_dir "env:")
  95.  
  96. (if (NOT (exists ADProRunner_dir (noreq)))
  97.     (set ADProRunner_dir "S:")
  98. )
  99.  
  100. (copyfiles
  101.     (source "Prefs/ADProRunner.prefs")
  102.     (dest ADProRunner_dir)
  103. )
  104.  
  105. (set ADProRunner_dir "envarc:")
  106.  
  107. (if (NOT (exists ADProRunner_dir (noreq)))
  108.     (set ADProRunner_dir "S:")
  109. )
  110.  
  111. (copyfiles
  112.     (source "Prefs/ADProRunner.prefs")
  113.     (dest ADProRunner_dir)
  114. )
  115.  
  116. (complete 80)
  117.  
  118. ;Correct @default-dest so that final information is correct.
  119. (set @default-dest destdir)
  120.  
  121. (complete 100)
  122.  
  123. (exit)
  124.